package com.bw.service;

import com.bw.bean.Student;
import com.bw.dao.StudentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class StudentServiceIMp implements StudentService{
    @Autowired
    StudentDao studentDao;
    @Override
    public List<Student> findAll() {
        return studentDao.findAll();
    }

    @Override
    public List<Student> findLike(String sname) {
        return studentDao.findLike(sname);
    }
}
